package com.ibeetl.admin.core.dao;

import com.ibeetl.admin.core.entity.CoreConfig;
import org.beetl.sql.core.annotatoin.Param;
import org.beetl.sql.core.annotatoin.Sql;
import org.beetl.sql.core.annotatoin.SqlResource;
import org.beetl.sql.core.engine.PageQuery;
import org.beetl.sql.core.mapper.BaseMapper;

import java.util.List;

/**
 * 配置表 Dao
 */
@SqlResource("console.config")
public interface CoreConfigDao extends BaseMapper<CoreConfig>{
    public PageQuery<CoreConfig> queryByCondition(PageQuery query);
    public void batchDelCoreConfigByIds( List<Long> ids);
    
    @Sql("select * from core_config c where c.title = ? and c.del_flag != true")
    public CoreConfig getConfigByTitle(@Param(value="title")String title);
}